<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html">

<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>PetStore UOC - Practical Case</title>
</h:head>

<h:body>
	<h:form>
	 <div id="layout">
		<div id="top" class="top">
			<ui:insert name="top">
				<table width="100%" cellspacing="0" border="0"
				  background="#{resource['images:bkg-topbar.gif']}">
				  <tr>
				    <td width="26"><img border="0" src="#{resource['images:petstore.gif']}"/></td>  
				  </tr>
				</table>
				<f:view>				
				 <h:form>
					<p><h3>El client Sr. <h:outputText value="#{totalOrders.customer.surname}"/> ha realitzat <h:outputText value="#{totalOrders.totalOrders}"/> comanda/es</h3>
					</p>
				<p>
					</p>
					<h:commandButton value="Back" immediate="true" rendered="#{totalAmount.consult}" action="homeView.xhtml">
					</h:commandButton>
					<p></p>
					<h:commandButton value="Back" immediate="true" rendered="#{totalAmount.list}" action="ClientListView.html">
					</h:commandButton>

				 </h:form>			
				</f:view>
			</ui:insert>
		</div>	
	 </div>
	</h:form>
</h:body>
</html>

